Pure-FTPd + Clamav
2014/08/16 |
Configure Pure-FTPd to run with Clamav to scan files.
Install Clamav first.
|
|
[1] | Configure Pure-FTPd. |
[root@www ~]#
vi /etc/pure-ftpd/pure-ftpd.conf # line 368: uncomment CallUploadScript yes
[root@www ~]#
vi /etc/pure-ftpd/clamscan.sh # create new #!/bin/bash /usr/bin/clamscan --remove --quiet --no-summary "$1" chmod 755 /etc/pure-ftpd/clamscan.sh [root@www ~]# pure-uploadscript -B -r /etc/pure-ftpd/clamscan.sh [root@www ~]# echo "pure-uploadscript -B -r /etc/pure-ftpd/clamscan.sh" >> /etc/rc.local [root@www ~]# /etc/rc.d/init.d/pure-ftpd restart Stopping pure-ftpd: [ OK ] Starting pure-ftpd: [ OK ] |
[2] |
Try to upload Test Virus and make sure it is not uploaded.
|